#pragma once
#include <sfml\system\win32\thread.hpp>

class DWorld;

class DLoaderThread :
    private sf::Thread
{
public:
    DLoaderThread(boost::shared_ptr<DWorld> world, const std::string& strWorldPath, bool& bLoading);
    ~DLoaderThread(void);

    void startLoading();
private:
    void Run();
    boost::weak_ptr<DWorld> m_world;
    std::string m_strWorldPath;
    bool& m_bLoading;
};
